import request from '@/common/request'

export function getInfo() {
    return request({
        url: '/apiadmin/member/info',
        method: 'get'
    })
}


export function getMemberList(data) {
    return request({
        url: '/apiadmin/member/index',
        method: 'post',
        data: data
    })
}


export function addMember(data) {
    return request({
        url: '/apiadmin/member/add',
        method: 'post',
        data: data
    })
}

export function editMember(data) {
    return request({
        url: '/apiadmin/member/edit',
        method: 'post',
        data: data
    })
}

export function delMember(id) {
    return request({
        url: '/apiadmin/member/del/id/' + id,
        method: 'get',

    })
}

export function getMember() {
    return request({
        url: '/apiadmin/member/selectMember',
        method: 'get',

    })
}

export function selectMemberField() {
    return request({
        url: '/apiadmin/member/selectMemberField',
        method: 'get'
    })
}

export function editPwd(data) {
    return request({
        url: '/apiadmin/member/editPwd',
        method: 'post',
        data: data
    })
}

export function userInfo() {
    return request({
        url: '/apiadmin/member/UserInfo',
        method: 'get',

    })
}

export function editInfo(data) {
    return request({
        url: '/apiadmin/member/editInfo',
        method: 'post',
        data: data
    })
}
